Image.py should send 2 new arguments to qemu-dm for setting QEMU window
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 4 Dec 2005 10:57:32 +0000 (11:57 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 4 Dec 2005 10:57:32 +0000 (11:57 +0100)
Title. 1 is const string "-domain-name", the other is the string of
domain name. At present imagy.py combines these two strings to 1. So
Qemu will fail to recognize it and fail to start.

Signed-off-by: Yongkang You <yongkang.you@intel.com>
tools/python/xen/xend/image.py

index 5099b2eba309a778a6d718264f37da8b60322ef3..3e1bf8688cb17738b0307e8223e9d82faf478da8 100644 (file)
@@ -261,7 +261,7 @@ class VmxImageHandler(ImageHandler):
 
         # Handle disk/network related options
         mac = None
-        ret.append("-domain-name %s" % self.vm.info['name'])
+        ret = ret + ["-domain-name", "%s" % self.vm.info['name']]
         for (name, info) in deviceConfig:
             if name == 'vbd':
                uname = sxp.child_value(info, 'uname')